use crate::{app_state::AppState, handlers::user_handlers::get_user};

use axum::{routing::get, Router}; // 引入 AppState

pub fn get_user_routes(state: AppState) -> Router<AppState> {
    Router::new()
        .route("/{id}", get(get_user))
        .with_state(state) // 将 AppState 注入到路由中
}
